FROM harbor.nj-hopes.com:8893/common/openjdk:11

MAINTAINER hopes bizz

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms256m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /park-video

WORKDIR /park-video

EXPOSE 9090

ADD ./target/bizz-park-video-biz.jar ./

CMD sleep 60;java $JAVA_OPTS -jar bizz-park-video-biz.jar
